package com.liuchong.rent.entity;

import java.util.NoSuchElementException;

public class Item {

    private Long id;
    private String item_no;
    private String name;
    private Double lost_cost;
    private Character item_type;

    public Long getId(){
        if (id == null) {
            throw new NoSuchElementException("No id present");
        }
        return id;
    }
    public void setId(Long id){
        this.id = id;
    }

    public String getItem_no(){
        if (item_no == null) {
            throw new NoSuchElementException("No item_no present");
        }
        return item_no;
    }
    public void setItem_no(String item_no){
        this.item_no = item_no;
    }

    public String getName(){
        if (name == null) {
            throw new NoSuchElementException("No name present");
        }
        return name;
    }
    public void setName(String name){
        this.name = name;
    }

    public Double getLost_cost(){
        if (lost_cost == null) {
            throw new NoSuchElementException("No lost_cost present");
        }
        return lost_cost;
    }
    public void setLost_cost(Double lost_cost){
        this.lost_cost = lost_cost;
    }

    public Character getItem_type(){
        if (item_type == null) {
            throw new NoSuchElementException("No item_type present");
        }
        return item_type;
    }
    public void setItem_type(Character item_type){
        this.item_type = item_type;
    }

}

